
import { createRouter, createWebHistory, type RouteRecordRaw } from 'vue-router'
// import { routes } from 'vue-router/auto-routes';

// const router = createRouter({
//   history: createWebHistory(),
//   routes: routes, // 使用自动生成的路由
// });
// day1211
const routesday20241211: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'dayStuden',
    component: () => import('@/views/day20241211/studen.vue'),
  },
  {
    path: '/Student',
    name: 'dayStudent',
    component: () => import('@/views/day20241211/student.vue'),
  },
  {
    path: '/Students',
    name: 'dayStudents',
    component: () => import('@/views/day20241211/students.vue'),
  },
]
// day1212
const routesday20241212: Array<RouteRecordRaw> = [
  {
    path: '/Stus',
    name: 'daystus',
    component: () => import("@/views/day20241212/stu.vue"),
  },
  {
    path: '/Stues',
    name: 'dayStues',
    component: () => import("@/views/day20241212/stue.jsx"),
  },
  {
    path: '/Stuee',
    name: 'ComponentName',
    component: () => import("@/views/day20241212/stuee.vue"),
  },
  {
    path: '/Stueee',
    name: 'ComponentName2',
    component: () => import("@/views/day20241212/stueee.vue"),
  }
]
// day1213
const routesday20241213: Array<RouteRecordRaw> = [
  {
    path: '/Jsq',
    name: 'jsq',
    component: () => import("@/views/day20241213/jsq.vue"),
  },
  {
    path: '/St',
    name: 'st',
    component: () => import("@/views/day20241213/st.vue"),
  },
  {
    path: '/Sts',
    name: 'sts',
    component: () => import("@/views/day20241213/sts.vue"),
  },
  {
    path: '/Stss',
    name: 'stss',
    component: () => import("@/views/day20241213/stss.vue"),
  },
  {
    path: '/Tab',
    name: 'tab',
    component: () => import("@/views/day20241213/tab.vue"),
  }
]
const routesday20241214: Array<RouteRecordRaw> = [
  {
    path: '/Tabs',
    name: 'tabs',
    component: () => import('@/views/day20241214/tabs.vue'),
  },
  {
    path: '/Zeng',
    name: 'zeng',
    component: () => import('@/views/day20241214/zeng.vue'),
  }
]
const routesday20241216: Array<RouteRecordRaw> = [
  {
    path: '/Scu',
    name: 'scu',
    component: () => import('@/views/day20241216/scu.vue'),
  },
  {
    path: '/Scus',
    name: 'scus',
    component: () => import('@/views/day20241216/scus.vue'),
  },
  {
    path: '/Scuss',
    name: 'scuss',
    component: () => import('@/views/day20241216/scuss.vue'),
  },
  {
    path: '/Scusss',
    name: 'scusss',
    component: () => import('@/views/day20241216/scusss.vue'),
  }
]
const routesday20241217: Array<RouteRecordRaw> = [
  {
    path: '/Scu1',
    name: 'scu1',
    component: () => import('@/views/day20241217/scu1.vue'),
  },
  {
    path: '/Scu2',
    name: 'scu2',
    component: () => import('@/views/day20241217/scu2.vue'),
  },
  {
    path: '/Scu3',
    name: 'scu3',
    component: () => import('@/views/day20241217/scu3.vue'),
  },
  {
    path: '/Scu4',
    name: 'scu4',
    component: () => import('@/views/day20241217/scu4.vue'),
  }
]
import scu5 from '@/views/day20241218/scu5.vue'
const routesday20241218: Array<RouteRecordRaw> = [
  {
    path: '/Scu5',
    name: 'scu5',
    component: () => import('@/views/day20241218/scu5.vue'),
  }
]
import scu6 from '@/views/day20241219/scu6.vue'
import scu7 from '@/views/day20241219/scu7.vue'
import scu8 from '@/views/day20241219/scu8.vue'
import scu9 from '@/views/day20241219/scu9.vue'
import scu10 from '@/views/day20241219/scu10.vue'
const routesday20241219: Array<RouteRecordRaw> = [
  {
    path: '/Scu6',
    name: 'scu6',
    component: () => import('@/views/day20241219/scu6.vue'),
  },
  {
    path: '/Scu7',
    name: 'scu7',
    component: () => import('@/views/day20241219/scu7.vue'),
  },
  {
    path: '/Scu8',
    name: 'scu8',
    component: () => import('@/views/day20241219/scu8.vue'),
  },
  {
    path: '/Scu9',
    name: 'scu9',
    component: () => import('@/views/day20241219/scu9.vue'),
  },
  {
    path: '/Scu10',
    name: 'scu10',
    component: () => import('@/views/day20241219/scu10.vue'),
  }
]
import scu11 from '@/views/day20241220/scu11.vue'
import scu12 from '@/views/day20241220/scu12.vue'
import scu13 from '@/views/day20241220/scu13.vue'
import scu14 from '@/views/day20241220/scu14.vue'
import scu15 from '@/views/day20241220/scu15.vue'
const routesday20241220: Array<RouteRecordRaw> = [
  {
    path: '/Scu11',
    name: 'scu11',
    component: () => import('@/views/day20241220/scu11.vue'),
  },
  {
    path: '/Scu12',
    name: 'scu12',
    component: () => import('@/views/day20241220/scu12.vue'),
  },
  {
    path: '/Scu13',
    name: 'scu13',
    component: () => import('@/views/day20241220/scu13.vue'),
  },
  {
    path: '/Scu14',
    name: 'scu14',
    component: () => import('@/views/day20241220/scu14.vue'),
  },
  {
    path: '/Scu15',
    name: 'scu15',
    component: () => import('@/views/day20241220/scu15.vue'),
  }
]
import scu16 from '@/views/day20241224/scu16.vue'
import scu17 from '@/views/day20241224/scu17.vue'
const routesday20241224: Array<RouteRecordRaw> = [
  {
    path: '/Scu16',
    name: 'scu16',
    component: () => import('@/views/day20241224/scu16.vue'),
  },
  {
    path: '/Scu17',
    name: 'scu17',
    component: () => import('@/views/day20241224/scu17.vue'),
  }
]
import scu18 from '@/views/day20241225/scu18.vue'
import scu19 from '@/views/day20241225/scu19.vue'
import scu20 from '@/views/day20241225/scu20.vue'
import scu21 from '@/views/day20241225/scu21.vue'
import scu22 from '@/views/day20241225/scu22.vue'
const routesday20241225: Array<RouteRecordRaw> = [
  {
    path: '/Scu18',
    name: 'scu18',
    component: () => import('@/views/day20241225/scu18.vue'),
  },
  {
    path: '/Scu19',
    name: 'scu19',
    component: () => import('@/views/day20241225/scu19.vue'),
  },
  {
    path: '/Scu20',
    name: 'scu20',
    component: () => import('@/views/day20241225/scu20.vue'),
  },
  {
    path: '/Scu21',
    name: 'scu21',
    component: () => import('@/views/day20241225/scu21.vue'),
  },
  {
    path: '/Scu22',
    name: 'scu22',
    component: () => import('@/views/day20241225/scu22.vue'),
  }
]
import scu23 from '@/views/day20241226/scu23.vue'
import scu24 from '@/views/day20241226/scu24.vue'
import scu25 from '@/views/day20241226/scu25.vue'
const routesday20241226: Array<RouteRecordRaw> = [
  {
    path: '/Scu23',
    name: 'scu23',
    component: () => import('@/views/day20241226/scu23.vue'),
  },
  {
    path: '/Scu24',
    name: 'scu24',
    component: () => import('@/views/day20241226/scu24.vue'),
  },
  {
    path: '/Scu25',
    name: 'scu25',
    component: () => import('@/views/day20241226/scu25.vue'),
  }
]
import scu26 from '@/views/day20241227/scu26.vue'
import scu27 from '@/views/day20241227/scu27.vue'
const routesday20241227: Array<RouteRecordRaw> = [
  {
    path: '/Scu26',
    name: 'scu26',
    component: () => import('@/views/day20241227/scu26.vue'),
  },
  {
    path: '/Scu27',
    name: 'scu27',
    component: () => import('@/views/day20241227/scu27.vue'),
  }
]
import scu28 from '@/views/day20241230/scu28.vue'
import scu50 from '@/views/day20241230/scu50.vue'
import scu51 from '@/views/day20241230/scu51.vue'
const routesday20241230: Array<RouteRecordRaw> = [
  {
    path: '/Scu28',
    name: 'scu28',
    component: () => import('@/views/day20241230/scu28.vue'),
  },
  {
    path: '/Scu50',
    name: 'scu50',
    component: () => import('@/views/day20241230/scu50.vue'),
  },
  {
    path: '/Scu51',
    name: 'scu51',
    component: () => import('@/views/day20241230/scu51.vue'),
  }
]
import scu29 from "@/views/day20250102/scu29.vue";
import scu31 from "@/views/day20250102/scu31.vue";
import scu32 from "@/views/day20250102/scu32.vue";
const routesday20250102: Array<RouteRecordRaw> = [
  {
    path: '/Scu29',
    name: 'scu29',
    component: () => import('@/views/day20250102/scu29.vue'),
  },
  {
    path: '/Scu31',
    name: 'scu31',
    component: () => import('@/views/day20250102/scu31.vue'),
    children:[
      {
        path: '/Scus25',
        name: 'scus25',
        component: () => import('@/views/day20250102/components/scus25.vue'),
      },
      {
        path: '/Scus26',
        name: 'scus26',
        component: () => import('@/views/day20250102/components/scus26.vue'),
      },
    ]
  },
  {
    path: '/Scu32',
    name: 'scu32',
    component: () => import('@/views/day20250102/scu32.vue'),
    children:[
      {
        path:'/Scus27/:id',
        name:'scus27',
        component:()=>import('@/views/day20250102/components/scus27.vue')
      }
    ]
  },
]
import scu33 from "@/views/day20250103/scu33.vue";
import scu34Son1 from "@/views/day20250103/components/scu34Son1.vue";
import scu34Son2 from "@/views/day20250103/components/scu34Son2.vue";
import scu34Son3 from "@/views/day20250103/components/scu34Son3.vue";
const routesday20250103: Array<RouteRecordRaw> = [
  {
    path: '/Scu33',
    name: 'scu33',
    component: () => import('@/views/day20250103/scu33.vue'),
    children:[
      {
        path: '/Scu33Son1',
        name: 'scu33Son1',
        component: () => import('@/views/day20250103/components/scu33Son1.vue'),
      },
      {
        path: '/Scu33/:id/:title/:content',
        name: 'scu33Son2',
        component: () => import('@/views/day20250103/components/scu33Son2.vue'),
      },
      {
        path: '/Scu33Son3',
        name: 'scu33Son3',
        component: () => import('@/views/day20250103/components/scu33Son3.vue'),
      },
      {
        path: '/Scu33/:id/:title/:content',
        name: 'scu33Son4',
        component: () => import('@/views/day20250103/components/scu33Son4.vue'),
      }
    ]
  },
  {
    path: '/Scu34',
    name: 'scu34',
    component: () => import('@/views/day20250103/scu34.vue'),
    children:[
      {
        path: '/Scu34/',
        name: 'Sons',
        components: {
          header:scu34Son1,
          default:scu34Son2,
          footer:scu34Son3
        },
        props:{header:false,default:true,footer:false}
      }
    ]
  },
  {
    path:'/Scu35',
    name:'scu35',
    // component:()=>import('@/views/day20250103/scu35.vue'),
    // redirect:'/Scu34',
    // redirect:{name:'scu34'},
    // redirect:{path:'/Scu33',query:{id:'1',title:'新闻标题',content:'新闻内容'}}
    redirect:(to)=>{
      return {path:'/Scu33',query:{id:'1',title:'新闻标题',content:'新闻内容'}}
    }
  },
  {
    path: '/Scu36',
    name: 'scu36',
    // alias:'/Scu36Rechristen',
    alias:['/Scu36Rechristen1','/Scu36Rechristen2','/Scu36Rechristen3'],
    component: () => import('@/views/day20250103/scu36.vue'),
  },
  {
    path:'/Scu37',
    name:'scu37',
    component:()=>import('@/views/day20250103/scu37.vue'),
    children:[
      {
        path:'/Scu37/:id',
        name:'scu37Son1',
        component:()=>import('@/views/day20250103/components/scu37Son1.vue'),
        props:true
      }
    ]
  },
  {
    path:'/Scu38',
    name:'scu38',
    component:()=>import('@/views/day20250103/scu38.vue'),
    children:[
      {
        path:'/Scu38Son1',
        name:'scu38Son1',
        component:()=>import('@/views/day20250103/components/scu38Son1.vue'),
        props:true
      }
    ]
  },
]
import scu39 from "@/views/day20250104/scu39.vue";
const routesday20250104: Array<RouteRecordRaw> = [
  {
    path: '/Scu39',
    name: 'scu39',
    component: () => import('@/views/day20250104/scu39.vue'),
    meta:{title:'我是路由元信息的标题',Transition:'bounce'},
    children:[
      {
        path: '/Scu39/:id/:title/:content',
        name: 'scu39Son1',
        component: () => import('@/views/day20250104/components/scu39Son1.vue'),
        props:true
      }
    ]
  },
]
const routesday20250106: Array<RouteRecordRaw> = [
  {
    path: '/Scu40',
    name: 'scu40',
    component: () => import('@/views/day20250106/scu40.vue'),
  },
  {
    path: '/Scu41',
    name: 'scu41',
    component: () => import('@/views/day20250106/scu41.vue'),
  },
]
const routesday20250107: Array<RouteRecordRaw> = [
  {
    path: '/Scu42',
    name: 'scu42',
    component: () => import('@/views/day20250107/scu42.vue'),
  },
]
const routesday20250108: Array<RouteRecordRaw> = [
  {
    path: '/Scu43',
    name: 'scu43',
    component: () => import('@/views/day20250108/scu43.vue'),
  },
]
const routesday20250109: Array<RouteRecordRaw> = [
  {
    path: '/Scu44',
    name: 'scu44',
    component: () => import('@/views/day20250109/scu44.vue'),
  },
  {
    path: '/Scu45',
    name: 'scu45',
    component: () => import('@/views/day20250109/scu45.vue'),
  },
]
import HomeView from '@/views/HomeView.vue'
import scu30 from '@/views/day20250102/scu30.vue'
import RegsisterView from '@/views/RegsisterView.vue'
import LoginView from '@/views/LoginView.vue'
import { Transition } from "vue";

const routerlist = [
  {
    path: '/',
    name: 'HomeView',
    component: HomeView,
    // meta:{requiresAuth:true}
  },
  {
    path: '/:pathMatch(.*)*',
    name: 'scu30',
    component: scu30,
  },
  {
    path: '/RegsisterView',
    name: 'RegsisterView',
    component: RegsisterView,
  },
  {
    path: '/LoginView',
    name: 'LoginView',
    component: LoginView,
  },
  ...routesday20241211,
  ...routesday20241212,
  ...routesday20241213,
  ...routesday20241214,
  ...routesday20241216,
  ...routesday20241217,
  ...routesday20241218,
  ...routesday20241219,
  ...routesday20241220,
  ...routesday20241224,
  ...routesday20241225,
  ...routesday20241226,
  ...routesday20241227,
  ...routesday20241230,
  ...routesday20250102,
  ...routesday20250103,
  ...routesday20250104,
  ...routesday20250106,
  ...routesday20250107,
  ...routesday20250108,
  ...routesday20250109,
]
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: routerlist,
})
// router.beforeEach((to, from, next) => {
//   const istrue = localStorage.getItem('token');
//   if (istrue) {
//     //已经登录
//     if (to.path === '/LoginView') {
//       next();
//     } else {
//       next();
//     }
//   } else {
//     //没有登录情况
//     if (to.path === '/LoginView' || to.path === '/RegisterView') {
//       next();
//     } else {
//       alert('未登录，请先登录账号');
//       next('/LoginView');
//     }
//   }
// });
export default router
